/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.lcfgly.util;

import java.io.IOException;
import java.util.Properties;

/**
 * config.properties配置文件信息获取
 * @author lcfgly
 */
public class ConfigDate {
    /**
     * 获取配置文件数据
     * @param type 
     * @return 
     */
    public static String config(String type){
        try{
            Properties properties=FileInfoUtil.GetProperties("classpath:config.properties");
            return properties.getProperty(type);
        }catch(IOException e){
            return "";
        }
    }
    
}
